home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Tools - Objects / MacApp / MacApp 2.0 CD Release / MacApp 2.0 (Many Libraries) / Examples / DemoDialogs / DemoDialogs.r < prev    next >
Encoding:
Text File  |  1990-03-27  |  44.0 KB  |  1,437 lines  |  [TEXT/MPS ]

  1. /* Copyright © 1988-1990 Apple Computer, Inc.  All rights reserved. */
  2.  
  3. /* • Auto-Include the requirements for this source */
  4. #ifndef __TYPES.R__
  5. #include "Types.r"
  6. #endif
  7.  
  8. #ifndef __MacAppTypes__
  9. #include "MacAppTypes.r"
  10. #endif
  11.  
  12. #if qTemplateViews
  13. #ifndef __ViewTypes__
  14. #include "ViewTypes.r"
  15. #endif
  16. #endif
  17.  
  18. #if qDebug
  19. include "Debug.rsrc";
  20. #endif
  21. include "MacApp.rsrc";
  22. include "Dialog.rsrc";
  23.  
  24. include $$Shell("ObjApp")"DemoDialogs" 'CODE';
  25.  
  26. /* Resource IDs */
  27.  
  28. #define kTestIcon            1000
  29. #define kTestPopup             235
  30. #define kBaudPopup             236
  31. #define kParityPopup         237
  32. #define kTestPicture        1000
  33. #define kTestStrings        1000
  34. #define kCalcPicture        1009
  35.  
  36. /* Command numbers */
  37.  
  38. #define cProcedureViews        1001
  39. #define cTemplateViews        1002
  40. #define cMonthlyDialog        1003
  41. #define cSaveDialog            1004
  42. #define    cMarkDialog            1005
  43. #define cPageSetupDialog    1006
  44. #define cHomeBrewControls    1007
  45. #define cTabbingTest        1008
  46. #define cCalculator            1009
  47. #define cScrollingTest        1011
  48. #define cFormatDialog        1012
  49. #define cModelessMarkDialog    1013
  50. #define cPopupExample        1100
  51. #define cCluster            1101
  52.  
  53. resource 'seg!' (256, purgeable) {
  54.     {
  55.         "GOpen";
  56.         "GClose";
  57.         "GNonRes";
  58.         "GSelCommand";
  59.         "GDoCommand"
  60.     }
  61. };
  62.  
  63. resource 'SIZE' (-1) {
  64.     dontSaveScreen,
  65.     acceptSuspendResumeEvents,
  66.     enableOptionSwitch,
  67.     canBackground,
  68.     MultiFinderAware,
  69.     backgroundAndForeground,
  70.     dontGetFrontClicks,
  71.     ignoreChildDiedEvents,
  72.     is32BitCompatible,
  73.     reserved,
  74.     reserved,
  75.     reserved,
  76.     reserved,
  77.     reserved,
  78.     reserved,
  79.     reserved,
  80. #if qDebug
  81.     500 * 1024,
  82.     400 * 1024
  83. #else
  84.     290 * 1024,
  85.     218 * 1024
  86. #endif
  87. };
  88.  
  89. resource 'DITL' (phAboutApp, purgeable) {
  90.      {
  91. /* [1] */    {160, 182, 180, 262}, Button { enabled, "OK" };
  92. /* [2] */    {8, 70, 152, 316}, StaticText { disabled, 
  93.     "This program has several examples of MacApp dialogs." 
  94.     "\n\nThis program was written "
  95.     "with MacApp® © 1985-1990 Apple Computer, Inc."};
  96. /* [3] */    {10, 20, 42, 52}, Icon { disabled, 1 }
  97.     }
  98. };
  99.  
  100. resource 'ALRT' (1000, purgeable) {
  101.     {44, 48, 130, 358},
  102.     1000,
  103.     {
  104.         OK, visible, sound1,
  105.         OK, visible, sound1,
  106.         OK, visible, sound1,
  107.         OK, visible, sound1
  108.     }
  109. };
  110.  
  111. include "Defaults.rsrc"  'ALRT' (phAboutApp);    // Grab the default about box
  112.  
  113. include "Defaults.rsrc" 'cmnu' (mApple);        // Grab the default Apple menu
  114.  
  115. resource 'cmnu' (mFile) {
  116.     mFile,
  117.     textMenuProc,
  118.     0x7FFFFBBB,
  119.     enabled,
  120.     "File",
  121.      {
  122. /* [1] */    "Quit",        noIcon, "Q",    noMark, plain, cQuit
  123.     }
  124. };
  125.  
  126. include "Defaults.rsrc" 'cmnu' (mEdit);        // Grab the default Edit menus
  127.  
  128. resource 'cmnu' (4) {
  129.     4,
  130.     textMenuProc,
  131.     0x7FFFFFBD,
  132.     enabled,
  133.     "Dialogs",
  134.      {
  135. /* [1] */    "Views by Procedures",        noIcon, noKey, noMark, plain, cProcedureViews;
  136. /* [2] */    "Views by Templates",        noIcon, noKey, noMark, plain, cTemplateViews;
  137. /* [3] */    "Side-by-Side Scrolling",    noIcon, noKey, noMark, plain, cScrollingTest;
  138. /* [4] */    "Monthly Values Dialog",    noIcon, noKey, noMark, plain, cMonthlyDialog;
  139. /* [5] */    "Save Dialog",                noIcon, noKey, noMark, plain, cSaveDialog;
  140. /* [6] */    "Mark Dialog",                noIcon, noKey, nomark, plain, cMarkDialog;
  141. /* [6] */    "Modeless Mark Dialog",        noIcon, noKey, nomark, plain, cModelessMarkDialog;
  142. /* [7] */    "Page Setup Dialog",        noIcon, noKey, nomark, plain, cPageSetupDialog;
  143. /* [8] */    "Format Dialog",            noIcon, noKey, nomark, plain, cFormatDialog;
  144. /* [9] */    "Home Brew Controls",        noIcon, noKey, nomark, plain, cHomeBrewControls;
  145. /* [10] */    "Tabbing Test",                noIcon, noKey, nomark, plain, cTabbingTest;
  146. /* [11] */    "Calculator Test",            noIcon, noKey, noMark, plain, cCalculator
  147.     }
  148. };
  149.  
  150. include "Defaults.rsrc" 'cmnu' (mBuzzwords);    // Get the default buzzwords menu
  151.  
  152. resource 'cmnu' (kTestPopup) {
  153.     kTestPopup,
  154.     textMenuProc,
  155.     allEnabled,
  156.     enabled,
  157.     "Popup:",
  158.     {
  159. /* [1] */    "Item 1",     noIcon, "", "", plain, nocommand;
  160. /* [2] */    "Item 2",     noIcon, "", "", plain, nocommand;
  161. /* [3] */    "Item 3",     noIcon, "", "", plain, nocommand;
  162. /* [4] */    "Item 4",     noIcon, "", "", plain, nocommand;
  163. /* [5] */    "Item 5",     noIcon, "", "", plain, nocommand;
  164. /* [6] */    "Item 6",     noIcon, "", "", plain, nocommand;
  165. /* [7] */    "Item 7",     noIcon, "", "", plain, nocommand;
  166. /* [8] */    "Item 8",     noIcon, "", "", plain, nocommand
  167.     }
  168. };
  169.  
  170. resource 'mctb' (kTestPopup) { {
  171.         kTestPopup, 0,
  172.         {
  173.         0x9999, 0x0000, 0x9999;            /* title color */
  174.         0xFFFF, 0x6666, 0x0000;            /* "menu bar" color */
  175.         0x0000, 0x6666, 0xFFFF;            /* default item color */
  176.         0xFFFF, 0xFFFF, 0x0000            /* default menu background color */
  177.         };
  178.  
  179.         kTestPopup, 3,
  180.         {
  181.         0xFFFF, 0x0000, 0x0000;            /* mark color */
  182.         0xFFFF, 0x0000, 0x0000;            /* name color */
  183.         0xFFFF, 0x0000, 0x0000;            /* command Key color */
  184.         0xFFFF, 0xFFFF, 0xFFFF            /* NFG!!! */
  185.         }
  186. } };
  187.  
  188. resource 'cmnu' (kBaudPopup) {
  189.     kBaudPopup,
  190.     textMenuProc,
  191.     allEnabled,
  192.     enabled,
  193.     "Baud:",
  194.     {
  195. /* [1] */    "110",     noIcon, "", "", plain, nocommand;
  196. /* [2] */    "300",     noIcon, "", "", plain, nocommand;
  197. /* [3] */    "600",     noIcon, "", "", plain, nocommand;
  198. /* [4] */    "1200",     noIcon, "", "", plain, nocommand
  199.     }
  200. };
  201.  
  202. resource 'cmnu' (kParityPopup) {
  203.     kParityPopup,
  204.     textMenuProc,
  205.     allEnabled,
  206.     enabled,
  207.     "Parity:",
  208.     {
  209. /* [1] */    "Even",     noIcon, "", "", plain, nocommand;
  210. /* [2] */    "Odd",     noIcon, "", "", plain, nocommand;
  211. /* [3] */    "No",     noIcon, "", "", plain, nocommand
  212.     }
  213. };
  214.  
  215. resource 'MBAR' (kMBarDisplayed) { {mApple; mFile; mEdit; 4} };
  216.  
  217. resource 'MBAR' (kMBarNotDisplayed) { {kTestPopup; kBaudPopup; kParityPopup} };
  218.  
  219. resource 'STR#' (kTestStrings, purgeable) { {
  220.     "Scroll me vertically…\n\n(P.S. This should read 'PARAM0': ^0\nThis should read 'PARAM1': ^1\nThis should read 'PARAM0': ^0)";
  221.     "A static string"
  222. } };
  223.  
  224. /************************************************************************************/
  225. /*    Views by procedure                                                                */
  226. /************************************************************************************/
  227. resource 'WIND' (cProcedureViews, purgeable) {
  228.     {50, 20, 310, 450}, zoomDocProc, invisible, goAway, 0x0, "Views by Procedure"
  229. };
  230.  
  231. /************************************************************************************/
  232. /*    Views by template                                                                */
  233. /************************************************************************************/
  234. resource 'view' (cCluster, purgeable) {
  235.     {
  236.         root, 'TCls', {0, 0}, { 190, 150 }, sizeFixed, sizeFixed, shown, disabled,
  237.         Cluster {
  238.             "",
  239.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  240.                 noInset, systemFont,
  241.             "A Cluster!" };
  242.  
  243.         'TCls', 'PRad', { 20, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  244.         Radio {
  245.             "",
  246.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  247.                 noInset, systemFont,
  248.             on, "Plain" };
  249.  
  250.         'TCls', 'BRad', { 40, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  251.         Radio {
  252.             "",
  253.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  254.                 noInset, bold, 12, black, "",
  255.             off, "Bold" };
  256.  
  257.         'TCls', 'IRad', { 60, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  258.         Radio {
  259.             "",
  260.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  261.                 noInset, italic, 12, black, "",
  262.             off, "Italic" };
  263.  
  264.         'TCls', 'URad', { 80, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  265.         Radio {
  266.             "",
  267.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  268.                 noInset, underline, 12, black, "",
  269.             off, "Underline" };
  270.  
  271.         'TCls', 'ORad', { 100, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  272.         Radio {
  273.             "",
  274.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  275.                 noInset, outline, 12, black, "",
  276.             off, "Outline" };
  277.  
  278.         'TCls', 'SRad', { 120, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  279.         Radio {
  280.             "",
  281.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  282.                 noInset, shadow, 12, black, "",
  283.             off, "Shadow" };
  284.  
  285.         'TCls', 'CRad', { 140, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  286.         Radio {
  287.             "",
  288.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  289.                 noInset, condense, 12, black, "",
  290.             off, "Condense" };
  291.  
  292.         'TCls', 'ERad', { 160, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  293.         Radio {
  294.             "",
  295.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  296.                 noInset, extend, 12, black, "",
  297.             off, "Extend" };
  298.     }
  299. };
  300.  
  301.  
  302. resource 'view' (cTemplateViews, purgeable) {
  303.     {
  304.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  305.         Window {
  306.             "",
  307.                 zoomDocProc, goAwayBox, resizable, modeless, doFirstClick,
  308.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  309.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, 'DLOG',
  310.                 "Views by Template" };
  311.  
  312.         'WIND', 'SCLR',    { 0, 0 }, { 260-kSBarSizeMinus1, 430-kSBarSizeMinus1 },
  313.         sizeRelSuperView, sizeRelSuperView, shown, enabled,
  314.         Scroller {
  315.             "",
  316.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  317.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  318.  
  319.         'SCLR', 'DLOG',    { 0, 0 }, { 900, 480 },
  320.         sizeFixed, sizeFixed, shown, enabled,
  321.         DialogView { "", noID, noID };
  322.  
  323.         'DLOG', IncludeViewsAt { cCluster, { 340, 100 } };
  324.  
  325.         'DLOG', noID, { 100, 50 }, { 150, 300 }, sizeFixed, sizeFixed, shown, disabled,
  326.         StaticText {
  327.             "",
  328.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  329.                 noInset, italic, 12, {0, 0, 0xFFFF}, "a",
  330.             justCenter, "Scroll me vertically…\n\n(P.S. This should read 'PARAM0': ^0\nThis should read 'PARAM1': ^1\nThis should read 'PARAM0': ^0)" };
  331.  
  332.         'DLOG', noID, { 540, 100 }, { 20, 100 }, sizeFixed, sizeFixed, shown, enabled,
  333.         CheckBox {
  334.             "",
  335.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  336.                 noInset, applFont12,
  337.             off, "Check Box" };
  338.  
  339.         'DLOG', noID,    { 540, 270 }, { 28, 100 }, sizeFixed, sizeFixed, shown, enabled,
  340.         Button {
  341.             "",
  342.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, doesntDismiss,
  343.                 { 4, 4, 4, 4 }, plain, 10, {0, 0, 0}, "a",
  344.             "Push Button" };
  345.  
  346.         'DLOG', noID, { 570, 130 }, { 35, 35 }, sizeFixed, sizeFixed, shown, enabled,
  347.         Icon {
  348.             "",
  349.                 adnFrame+adnShadow, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  350.                 { 1, 1, 1, 1 }, systemFont,
  351.             preferColor, kTestIcon };
  352.  
  353.         'DLOG', noID, { 660, 100 }, { 0x18C-0xF0+16, 0x12C-0x8F+16 },
  354.         sizeFixed, sizeFixed, shown, enabled,
  355.         Picture {
  356.             "",
  357.                 adnRRect+adnShadow, {2, 2}, sizeable, notDimmed, notHilited, doesntDismiss,
  358.                 { 8, 8, 8, 8 }, systemFont,
  359.             kTestPicture };
  360.  
  361.         'DLOG', noID, { 620, 20 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  362.         StaticText {
  363.             "",
  364.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  365.                 noInset, plain, 12, {0xFFFF, 0, 0}, "",
  366.             justCenter, "A static string" };
  367.  
  368.         'DLOG', noID, { 620, 140 }, { 22, 100 }, sizeFixed, sizeFixed, shown, enabled,
  369.         EditText {
  370.             "",
  371.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  372.                 {3, 3, 3, 3}, applFont12,
  373.             justRight, "EditText",
  374.             255, ArrowsAndBackspace }
  375.     }
  376. };
  377.  
  378. /*    The popup example is separate from the rest of the views so that we avoid        */
  379. /*    creating it if the machine doesn't support popup menus.                            */
  380.  
  381. resource 'view' (cPopupExample, purgeable) {
  382.     {
  383.         root, noID, { 589, 290 }, { 22, 120 }, sizeFixed, sizeFixed, shown, enabled,
  384.         Popup {
  385.             "",
  386.                 noAdornment, notSizeable, notDimmed, notHilited, doesntDismiss,
  387.                 noInset, systemFont,
  388.             kTestPopup, 2, 50 },
  389.         root, noID, { 624, 290 }, { 22, 120 }, sizeFixed, sizeFixed, shown, enabled,
  390.         Popup {
  391.             "",
  392.                 noAdornment, notSizeable, notDimmed, notHilited, doesntDismiss,
  393.                 noInset, systemFont,
  394.             kBaudPopup, 1, 50 },
  395.         root, noID, { 659, 290 }, { 22, 120 }, sizeFixed, sizeFixed, shown, enabled,
  396.         Popup {
  397.             "",
  398.                 noAdornment, notSizeable, notDimmed, notHilited, doesntDismiss,
  399.                 noInset, systemFont,
  400.             kParityPopup, 1, 50 }
  401.     }
  402. };
  403.  
  404. /************************************************************************************/
  405. /*    Scrolling test dialog                                                            */
  406. /************************************************************************************/
  407. resource 'view' (cScrollingTest, purgeable) {
  408.     {
  409.         root, 'WIND', { 50, 20 }, { 260, 431 }, sizeVariable, sizeVariable, shown, enabled,
  410.         Window {
  411.             "",
  412.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  413.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  414.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, noId,
  415.                 "Side-by-Side Scrolling" };
  416.  
  417.         'WIND', 'SCL1',    { 0, 0 }, { 260-kSBarSizeMinus1, 215-kSBarSizeMinus1 },
  418.         sizeRelSuperView, sizeFixed, shown, disabled,
  419.         Scroller {
  420.             "",
  421.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  422.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  423.  
  424.         'SCL1', noId, { 0, 0 }, { 160000, 1000 },
  425.         sizeFixed, sizeFixed, shown, enabled,
  426.         View { "TNumbersView" };
  427.  
  428.         'WIND', 'SCL2',    { 0 , 216 }, { 260-kSBarSizeMinus1, 215-kSBarSizeMinus1 },
  429.         sizeRelSuperView, sizeRelSuperView, shown, disabled,
  430.         Scroller {
  431.             "",
  432.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  433.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  434.  
  435.         'SCL2', noId, { 0, 0 }, { 160000, 1000 },
  436.         sizeFixed, sizeFixed, shown, enabled,
  437.         View { "TNumbersView"  }
  438.     }
  439. };
  440.  
  441.  
  442.  
  443. /************************************************************************************/
  444. /*    Monthly values dialog                                                            */
  445. /************************************************************************************/
  446. resource 'view' (cMonthlyDialog, purgeable) {
  447.     {
  448.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  449.         Window {
  450.             "",
  451.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  452.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  453.                 AdaptToScreen, stagger, forceOnScreen, dontCenter, 'jan ',
  454.                 "Monthly Values" };
  455.  
  456.         'WIND', 'SCLR',    { 0, 0 }, { 260-kSBarSizeMinus1, 430-kSBarSizeMinus1 },
  457.         sizeRelSuperView, sizeRelSuperView, shown, enabled,
  458.         Scroller {
  459.             "",
  460.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  461.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  462.  
  463.         'SCLR', 'DLOG',    { 0, 0 }, { 1000, 500 }, sizeFixed, sizeFixed, shown, enabled,
  464.         DialogView {
  465.             "TMonthlyDialog",
  466.                 noID, noID };
  467.  
  468.         'DLOG', noID, { 10, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  469.         StaticText {
  470.             "",
  471.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  472.                 noInset, systemFont,
  473.             justSystem, "January" };
  474.  
  475.         'DLOG', 'jan ', { 9, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  476.         NumberText {
  477.             "",
  478.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  479.                 stdInset, applFont12,
  480.             justRight, "",
  481.             5, arrowsAndBackspace,
  482.             0, 0, 32767 };
  483.  
  484.         'DLOG', noID, { 40, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  485.         StaticText {
  486.             "",
  487.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  488.                 noInset, systemFont,
  489.             justSystem, "February" };
  490.  
  491.         'DLOG', 'feb ', { 39, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  492.         NumberText {
  493.             "",
  494.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  495.                 stdInset, applFont12,
  496.             justRight, "",
  497.             5, arrowsAndBackspace,
  498.             0, 0, 32767 };
  499.  
  500.         'DLOG', noID, { 70, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  501.         StaticText {
  502.             "",
  503.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  504.                 noInset, systemFont, justSystem, "March" };
  505.  
  506.         'DLOG', 'mar ', { 69, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  507.         NumberText {
  508.             "",
  509.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  510.                 stdInset, applFont12,
  511.             justRight, "",
  512.             5, arrowsAndBackspace,
  513.             0, 0, 32767 };
  514.  
  515.         'DLOG', noID, { 100, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  516.         StaticText {
  517.             "",
  518.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  519.                 noInset, systemFont,
  520.             justSystem, "April" };
  521.  
  522.         'DLOG', 'apr ', { 99, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  523.         NumberText {
  524.             "",
  525.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  526.                 stdInset, applFont12,
  527.             justRight, "",
  528.             5, arrowsAndBackspace,
  529.             0, 0, 32767 };
  530.  
  531.         'DLOG', noID, { 130, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  532.         StaticText {
  533.             "",
  534.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  535.                 noInset, systemFont,
  536.             justSystem, "May" };
  537.  
  538.         'DLOG', 'may ', { 129, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  539.         NumberText {
  540.             "",
  541.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  542.                 stdInset, applFont12,
  543.             justRight, "",
  544.             5, arrowsAndBackspace,
  545.             0, 0, 32767 };
  546.  
  547.         'DLOG', noID, { 160, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  548.         StaticText {
  549.             "",
  550.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  551.                 noInset, systemFont,
  552.             justSystem, "June" };
  553.  
  554.         'DLOG', 'jun ', { 159, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  555.         NumberText {
  556.             "",
  557.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  558.                 stdInset, applFont12,
  559.             justRight, "",
  560.             5, arrowsAndBackspace,
  561.             0, 0, 32767 };
  562.  
  563.         'DLOG', noID, { 190, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  564.         StaticText {
  565.             "",
  566.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  567.                 noInset, systemFont,
  568.             justSystem, "July" };
  569.  
  570.         'DLOG', 'jul ', { 189, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  571.         NumberText {
  572.             "",
  573.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  574.                 stdInset, applFont12,
  575.             justRight, "",
  576.             5, arrowsAndBackspace,
  577.             0, 0, 32767 };
  578.  
  579.         'DLOG', noID, { 220, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  580.         StaticText {
  581.             "",
  582.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  583.                 noInset, systemFont,
  584.             justSystem, "August" };
  585.  
  586.         'DLOG', 'aug ', { 219, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  587.         NumberText {
  588.             "",
  589.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  590.                 stdInset, applFont12,
  591.             justRight, "",
  592.             5, arrowsAndBackspace,
  593.             0, 0, 32767 };
  594.  
  595.         'DLOG', noID, { 250, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  596.         StaticText {
  597.             "",
  598.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  599.                 noInset, systemFont,
  600.             justSystem, "September" };
  601.  
  602.         'DLOG', 'sep ', { 249, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  603.         NumberText {
  604.             "",
  605.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  606.                 stdInset, applFont12,
  607.             justRight, "",
  608.             5, arrowsAndBackspace,
  609.             0, 0, 32767 };
  610.  
  611.         'DLOG', noID, { 280, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  612.         StaticText {
  613.             "",
  614.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  615.                 noInset, systemFont,
  616.             justSystem, "October" };
  617.  
  618.         'DLOG', 'oct ', { 279, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  619.         NumberText {
  620.             "",
  621.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  622.                 stdInset, applFont12,
  623.             justRight, "",
  624.             5, arrowsAndBackspace,
  625.             0, 0, 32767 };
  626.  
  627.         'DLOG', noID, { 310, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  628.         StaticText {
  629.             "",
  630.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  631.                 noInset, systemFont,
  632.             justSystem, "November" };
  633.  
  634.         'DLOG', 'nov ', { 309, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  635.         NumberText {
  636.             "",
  637.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  638.                 stdInset, applFont12,
  639.             justRight, "",
  640.             5, arrowsAndBackspace,
  641.             0, 0, 32767 };
  642.  
  643.         'DLOG', noID, { 340, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  644.         StaticText {
  645.             "",
  646.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  647.                 noInset, systemFont,
  648.             justSystem, "December" };
  649.  
  650.         'DLOG', 'dec ', { 339, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  651.         NumberText {
  652.             "",
  653.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  654.                 stdInset, applFont12,
  655.             justRight, "",
  656.             5, arrowsAndBackspace,
  657.             0, 0, 32767 }
  658.  
  659.     }
  660. };
  661.  
  662.  
  663. /************************************************************************************/
  664. /*    The "Save" dialog                                                                */
  665. /************************************************************************************/
  666. resource 'view' (cSaveDialog, purgeable) {
  667.     {
  668.         root, 'WIND', { 100, 110 }, { 120, 292 }, sizeVariable, sizeVariable, shown, enabled,
  669.         Window {
  670.             "",
  671.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  672.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  673.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally,
  674.                 'DLOG', "Save Dialog" };
  675.  
  676.         'WIND', 'DLOG',    { 0, 0 }, { 120, 292 }, sizeFixed, sizeFixed, shown, enabled,
  677.         DialogView {
  678.             "",
  679.                 'yes ', 'cncl' };
  680.  
  681.         'DLOG', 'yes ',    { 56, 23 }, { 26, 82 }, sizeFixed, sizeFixed, shown, enabled,
  682.         Button {
  683.             "",
  684.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  685.                 { 4, 4, 4, 4 }, systemFont,
  686.             "Yes" };
  687.  
  688.         'DLOG', 'no  ',    { 86, 195 }, { 18, 74 }, sizeFixed, sizeFixed, shown, enabled,
  689.         Button {
  690.             "",
  691.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  692.                 noInset, systemFont,
  693.             "No" };
  694.  
  695.         'DLOG', 'cncl',    { 86, 25 }, { 18, 74 }, sizeFixed, sizeFixed, shown, enabled,
  696.         Button {
  697.             "",
  698.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  699.                 noInset, systemFont,
  700.             "Cancel" };
  701.  
  702.         'DLOG', noID, { 12, 20 }, { 33, 257 }, sizeFixed, sizeFixed, shown, disabled,
  703.         StaticText {
  704.             "",
  705.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  706.                 noInset, systemFont,
  707.             justSystem, "Save changes to Untitled-1 before closing?" }
  708.     }
  709. };
  710.  
  711.  
  712. /************************************************************************************/
  713. /*    The "Mark" Dialog                                                                */
  714. /************************************************************************************/
  715. resource 'view' (cMarkDialog, purgeable) {
  716.     {
  717.         root, 'WIND', { 72, 64 }, { 92, 364 }, sizeVariable, sizeVariable, shown, enabled,
  718.         Window {
  719.             "",
  720.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  721.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  722.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'mark',
  723.                 "Mark Dialog" };
  724.  
  725.         'WIND', 'DLOG',    { 0, 0 }, { 1000, 500 }, sizeFixed, sizeFixed, shown, enabled,
  726.         DialogView {
  727.             "",
  728.                 'ok  ', 'cncl' };
  729.  
  730.         'DLOG', 'ok  ',    { 60, 48 }, { 28, 81 }, sizeFixed, sizeFixed, shown, enabled,
  731.         Button {
  732.             "",
  733.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  734.                 { 4, 4, 4, 4 }, systemFont,
  735.             "OK" };
  736.  
  737.         'DLOG', 'cncl',    { 64, 231 }, { 20, 73 }, sizeFixed, sizeFixed, shown, enabled,
  738.         Button {
  739.             "",
  740.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  741.                 noInset, systemFont,
  742.             "Cancel" };
  743.  
  744.         'DLOG', noID, { 8, 8 }, { 16, 344 }, sizeFixed, sizeFixed, shown, disabled,
  745.         StaticText {
  746.             "",
  747.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  748.                 noInset, systemFont,
  749.             justSystem, "Mark the selection with what name?" };
  750.  
  751.         'DLOG', 'mark', { 29, 7 }, { 22, 346 }, sizeFixed, sizeFixed, shown, enabled,
  752.         EditText {
  753.             "",
  754.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  755.                 stdInset, systemFont,
  756.             justSystem, "",
  757.             255, arrowsAndBackspace }
  758.     }
  759. };
  760.  
  761. /************************************************************************************/
  762. /*    The Modeless "Mark" Dialog                                                        */
  763. /************************************************************************************/
  764. resource 'view' (cModelessMarkDialog, purgeable) {
  765.     {
  766.         root, 'WIND', { 72, 64 }, { 92, 364 }, sizeVariable, sizeVariable, shown, enabled,
  767.         Window {
  768.             "",
  769.                 documentProc, goAwayBox, notResizable, modeless, ignoreFirstClick,
  770.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  771.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'mark',
  772.                 "Modeless Mark Dialog" };
  773.  
  774.         'WIND', 'DLOG',    { 0, 0 }, { 1000, 500 }, sizeFixed, sizeFixed, shown, enabled,
  775.         DialogView {
  776.             "TModelessMarkDialog",
  777.                 'ok  ', 'cncl' };
  778.  
  779.         'DLOG', 'ok  ',    { 60, 48 }, { 28, 81 }, sizeFixed, sizeFixed, shown, enabled,
  780.         Button {
  781.             "",
  782.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  783.                 { 4, 4, 4, 4 }, systemFont,
  784.             "OK" };
  785.  
  786.         'DLOG', 'cncl',    { 64, 231 }, { 20, 73 }, sizeFixed, sizeFixed, shown, enabled,
  787.         Button {
  788.             "",
  789.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  790.                 noInset, systemFont,
  791.             "Cancel" };
  792.  
  793.         'DLOG', noID, { 8, 8 }, { 16, 344 }, sizeFixed, sizeFixed, shown, disabled,
  794.         StaticText {
  795.             "",
  796.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  797.                 noInset, systemFont,
  798.             justSystem, "Mark the selection with what name?" };
  799.  
  800.         'DLOG', 'mark', { 29, 7 }, { 22, 346 }, sizeFixed, sizeFixed, shown, enabled,
  801.         EditText {
  802.             "",
  803.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  804.                 stdInset, systemFont,
  805.             justSystem, "",
  806.             255, arrowsAndBackspace }
  807.     }
  808. };
  809.  
  810. /************************************************************************************/
  811. /*    ImageWriter Page Setup Dialog                                                    */
  812. /************************************************************************************/
  813. resource 'view' (cPageSetupDialog, purgeable) {
  814.     {
  815.         root, 'WIND', { 30, 20 }, { 144, 472 }, sizeVariable, sizeVariable, shown, enabled,
  816.         Window {
  817.             "",
  818.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  819.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  820.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'DLOG',
  821.                 "Page Setup Dialog" };
  822.  
  823.         'WIND', 'DLOG',    { 0, 0 }, { 144, 472 }, sizeFixed, sizeFixed, shown, enabled,
  824.         DialogView {
  825.             "TPageSetupDialog",
  826.                 'ok  ', 'cncl' };
  827.  
  828.         'DLOG', 'ok  ',    { 0, 396 }, { 28, 68 }, sizeFixed, sizeFixed, shown, enabled,
  829.         Button {
  830.             "",
  831.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  832.                 { 4, 4, 4, 4 }, systemFont,
  833.             "OK" };
  834.  
  835.         'DLOG', 'cncl',    { 40, 400 }, { 20, 60 }, sizeFixed, sizeFixed, shown, enabled,
  836.         Button {
  837.             "",
  838.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  839.                 noInset, systemFont,
  840.             "Cancel" };
  841.  
  842.         'DLOG', noID, { 4, 4 }, { 16, 380 }, sizeFixed, sizeFixed, shown, disabled,
  843.         StaticText {
  844.             "",
  845.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  846.                 noInset, systemFont,
  847.             justSystem, "ImageWriter" };
  848.  
  849.         'DLOG', noID, { 20, 4 }, { 3, 380 }, sizeFixed, sizeFixed, shown, disabled,
  850.         Control {
  851.             "",
  852.                 adnLineTop+adnLineBottom, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  853.                 noInset, systemFont };
  854.  
  855.         'DLOG', noID, { 8, 300 }, { 12, 384-300 }, sizeFixed, sizeFixed, shown, disabled,
  856.         StaticText {
  857.             "",
  858.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  859.                 noInset, applFont9,
  860.             justRight, "MacApp 2.0" };
  861.  
  862.         'DLOG', noID, { 24, 4 }, { 16, 58 }, sizeFixed, sizeFixed, shown, disabled,
  863.         StaticText {
  864.             "",
  865.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  866.                 noInset, systemFont,
  867.             justSystem, "Paper:" };
  868.  
  869.         'DLOG', 'papC', { 24, 68 }, { 46, 320 }, sizeFixed, sizeFixed, shown, disabled,
  870.         Cluster {
  871.             "",
  872.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  873.                 noInset, systemFont,
  874.             "" };
  875.  
  876.         'papC', 'pap1', { 0, 0 }, { 16, 140 }, sizeFixed, sizeFixed, shown, enabled,
  877.         Radio {
  878.             "",
  879.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  880.                 noInset, systemFont,
  881.             on, "US Letter" };
  882.  
  883.         'papC', 'pap2', { 0, 150 }, { 16, 165 }, sizeFixed, sizeFixed, shown, enabled,
  884.         Radio {
  885.             "",
  886.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  887.                 noInset, systemFont,
  888.             off, "A4 Letter" };
  889.  
  890.         'papC', 'pap3', { 15, 0 }, { 16, 140 }, sizeFixed, sizeFixed, shown, enabled,
  891.         Radio {
  892.             "",
  893.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  894.                 noInset, systemFont,
  895.             off, "US Legal" };
  896.  
  897.         'papC', 'pap4', { 15, 150 }, { 16, 165 }, sizeFixed, sizeFixed, shown, enabled,
  898.         Radio {
  899.             "",
  900.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  901.                 noInset, systemFont,
  902.             off, "International Fanfold" };
  903.  
  904.         'papC', 'pap5', { 30, 0 }, { 16, 140 }, sizeFixed, sizeFixed, shown, enabled,
  905.         Radio {
  906.             "",
  907.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  908.                 noInset, systemFont,
  909.             off, "Computer Paper" };
  910.  
  911.         'papC', 'pap6', { 30, 150 }, { 16, 165 }, sizeFixed, sizeFixed, notShown, disabled,
  912.         Radio {
  913.             "",
  914.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  915.                 noInset, systemFont,
  916.             off, "Invisible" };
  917.  
  918.         'DLOG', noID, { 74, 4 }, { 16, 84 }, sizeFixed, sizeFixed, shown, disabled,
  919.         StaticText {
  920.             "",
  921.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  922.                 noInset, systemFont,
  923.             justSystem, "Orientation" };
  924.  
  925.         'DLOG', 'vert', { 93, 5 }, { 32, 32 }, sizeFixed, sizeFixed, shown, enabled,
  926.         Icon {
  927.             "TRadioIcon",
  928.                 noAdornment, sizeable, notDimmed, hilited, doesntDismiss,
  929.                 noInset, systemFont,
  930.             dontPreferColor, 10060 };
  931.  
  932.         'DLOG', 'horz', { 93, 45 }, { 32, 32 }, sizeFixed, sizeFixed, shown, enabled,
  933.         Icon {
  934.             "TRadioIcon",
  935.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  936.                 noInset, systemFont,
  937.             dontPreferColor, 10061 };
  938.  
  939.         'DLOG', noID, { 74, 106 }, { 16, 113 }, sizeFixed, sizeFixed, shown, disabled,
  940.         StaticText {
  941.             "",
  942.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  943.                 noInset, systemFont,
  944.             justSystem, "Special Effects:" };
  945.  
  946.         'DLOG', 'tall', { 74, 220 }, { 16, 108 }, sizeFixed, sizeFixed, shown, enabled,
  947.         CheckBox {
  948.             "",
  949.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  950.                 noInset, systemFont,
  951.             off, "Tall Adjusted" };
  952.  
  953.         'DLOG', 'red ', { 89, 220 }, { 16, 122 }, sizeFixed, sizeFixed, shown, enabled,
  954.         CheckBox {
  955.             "",
  956.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  957.                 noInset, systemFont,
  958.             off, "50 % Reduction" };
  959.  
  960.         'DLOG', 'gap ', { 104, 220 }, { 16, 181 }, sizeFixed, sizeFixed, shown, enabled,
  961.         CheckBox {
  962.             "",
  963.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  964.                 noInset, systemFont,
  965.             off, "No Gap Between Pages" }
  966.     }
  967. };
  968.  
  969. /************************************************************************************/
  970. /*    Format Dialog                                                                    */
  971. /************************************************************************************/
  972. resource 'view' (cFormatDialog, purgeable) {
  973.     {
  974.         root, 'WIND', { 68, 52 }, { 245-68, 435-52 }, sizeFixed, sizeFixed, shown, enabled,
  975.         Window {
  976.             "",
  977.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  978.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  979.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'size',
  980.                 "Format Dialog" };
  981.  
  982.         'WIND', 'DLOG',    { 0, 0 }, { 245-68, 435-52 }, sizeSuperView, sizeSuperView, shown, enabled,
  983.         DialogView {
  984.             "",
  985.                 'ok  ', 'cncl' };
  986.  
  987.         'DLOG', 'ok  ',    { 100, 264 }, { 28, 81 }, sizeFixed, sizeFixed, shown, enabled,
  988.         Button {
  989.             "",
  990.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  991.                 { 4, 4, 4, 4 }, systemFont,
  992.             "OK" };
  993.  
  994.         'DLOG', 'cncl',    { 135, 268 }, { 20, 73 }, sizeFixed, sizeFixed, shown, enabled,
  995.         Button {
  996.             "",
  997.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  998.                 noInset, systemFont,
  999.             "Cancel" };
  1000.  
  1001.         'DLOG', noID, { 68, 253 }, { 17, 38 }, sizeFixed, sizeFixed, shown, disabled,
  1002.         StaticText {
  1003.             "",
  1004.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1005.                 noInset, systemFont,
  1006.             justSystem, "Tabs:" };
  1007.  
  1008.         'DLOG', 'tabs', { 65, 295 }, { 22, 37 }, sizeFixed, sizeFixed, shown, enabled,
  1009.         NumberText {
  1010.             "",
  1011.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1012.                 stdInset, systemFont,
  1013.             justSystem, "", 255, arrowsAndBackspace, 4, 0, 99 };
  1014.  
  1015.         'DLOG', 'inv ', { 42, 245 }, { 20, 127 }, sizeFixed, sizeFixed, shown, enabled,
  1016.         CheckBox {
  1017.             "",
  1018.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1019.                 noInset, systemFont,
  1020.             off, "Show Invisibles" };
  1021.  
  1022.         'DLOG', 'auto', { 25, 245 }, { 18, 123 }, sizeFixed, sizeFixed, shown, enabled,
  1023.         CheckBox {
  1024.             "",
  1025.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1026.                 noInset, systemFont,
  1027.             on, "Auto Indent" };
  1028.  
  1029.         'DLOG', noID, { 7, 15 }, { 18, 38 }, sizeFixed, sizeFixed, shown, disabled,
  1030.         StaticText {
  1031.             "",
  1032.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1033.                 noInset, systemFont,
  1034.             justSystem, "Font" };
  1035.  
  1036.         'DLOG', noID, { 7, 184 }, { 18, 33 }, sizeFixed, sizeFixed, shown, disabled,
  1037.         StaticText {
  1038.             "",
  1039.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1040.                 noInset, systemFont,
  1041.             justSystem, "Size" };
  1042.  
  1043.         'DLOG', 'size', { 27, 180 }, { 22, 40 }, sizeFixed, sizeFixed, shown, enabled,
  1044.         NumberText {
  1045.             "",
  1046.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1047.                 stdInset, systemFont,
  1048.             justSystem, "", 255, arrowsAndBackspace, 9, 0, 255 };
  1049.  
  1050.         'DLOG', noID, { 28, 11 }, { 130, 159 }, sizeFixed, sizeFixed, shown, disabled,
  1051.         Control {
  1052.             "",
  1053.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss, noInset, systemFont };
  1054.  
  1055.         'DLOG', 'SCL1',    { 29, 12 }, { 128, 142 },
  1056.         sizeFixed, sizeFixed, shown, enabled,
  1057.         Scroller {
  1058.             "",
  1059.                 vertScrollBar, noHorzScrollBar, 0, 0, 16, 16,
  1060.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  1061.  
  1062.         'SCL1', 'flst', { 0, 0 }, { 0, 142 },
  1063.         sizeVariable, sizeFixed, shown, enabled,
  1064.         TextListView {
  1065.             "TFontListView",
  1066.                 0, 1, 16, 142, 0, 6, dontAdornRows, dontAdornCols, singleSelection, systemFont };
  1067.  
  1068.         'DLOG', noID, { 60, 180 }, { 98, 40 }, sizeFixed, sizeFixed, shown, disabled,
  1069.         Control {
  1070.             "",
  1071.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss, noInset, systemFont };
  1072.  
  1073.         'DLOG', 'SCL2',    { 61, 181 }, { 96, 23 },
  1074.         sizeFixed, sizeFixed, shown, enabled,
  1075.         Scroller {
  1076.             "",
  1077.                 vertScrollBar, noHorzScrollBar, 0, 0, 16, 16,
  1078.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  1079.  
  1080.         'SCL2', 'slst', { 0, 0 }, { 0, 23 },
  1081.         sizeVariable, sizeFixed, shown, enabled,
  1082.         TextListView {
  1083.             "TSizeListView",
  1084.                 0, 1, 16, 23, 0, 6, dontAdornRows, dontAdornCols, singleSelection, systemFont };
  1085.  
  1086.         'DLOG', noID, { 28, 233 }, { 128, 1 }, sizeFixed, sizeFixed, shown, disabled,
  1087.         Control {
  1088.             "",
  1089.                 adnLineLeft, { 1, 1 }, sizeable, dimmed, notHilited, doesntDismiss, noInset, systemFont }
  1090.     }
  1091. };
  1092.  
  1093. /************************************************************************************/
  1094. /*    Homebrew Controls Dialog                                                        */
  1095. /************************************************************************************/
  1096. resource 'view' (cHomeBrewControls, purgeable) {
  1097.     {
  1098.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  1099.         Window {
  1100.             "",
  1101.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  1102.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  1103.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, noID,
  1104.                 "Home Brew Controls" };
  1105.  
  1106.         'WIND', 'DLOG',    { 0, 0 }, { 240, 430 }, sizeSuperView, sizeSuperView, shown, enabled,
  1107.         DialogView {
  1108.             "THomeBrewDialog",
  1109.                 noID, noID };
  1110.  
  1111.         'DLOG', 'Conv', {100, 20}, { 90, 236 }, sizeFixed, sizeFixed, shown, disabled,
  1112.         Cluster {
  1113.             "TTemperatureConversionCluster",
  1114.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1115.                 noInset, systemFont,
  1116.             "Temperature Conversion" };
  1117.  
  1118.         'Conv', 'Cels', {20, 16}, { 60, 100 }, sizeFixed, sizeFixed, shown, disabled,
  1119.         Cluster {
  1120.             "TTemperatureCluster",
  1121.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1122.                 noInset, systemFont,
  1123.             "Celsius" };
  1124.  
  1125.  
  1126.         'Cels', 'arws', {30, 60}, {18, 11}, sizeFixed, sizeFixed, shown, enabled,
  1127.         Picture {
  1128.             "TArrowsControl",
  1129.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1130.                 noInset, systemFont,
  1131.             1001 };
  1132.  
  1133.         'Cels', 'Numb', { 30, 10 }, { 22, 40 }, sizeFixed, sizeFixed, shown, disabled,
  1134.         NumberText {
  1135.             "",
  1136.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  1137.                 {2, 2, 2, 2}, applFont12,
  1138.             justRight, "",
  1139.             255, ArrowsAndBackspace,
  1140.             0, -40, 105 };
  1141.  
  1142.         'Conv', 'Fahr', {20, 120}, { 60, 100 }, sizeFixed, sizeFixed, shown, disabled,
  1143.         Cluster {
  1144.             "TTemperatureCluster",
  1145.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1146.                 noInset, systemFont,
  1147.             "Fahrenheit" };
  1148.  
  1149.         'Fahr', 'arws', {30, 60}, {18, 11}, sizeFixed, sizeFixed, shown, enabled,
  1150.         Picture {
  1151.             "TArrowsControl",
  1152.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1153.                 noInset, systemFont,
  1154.             1001 };
  1155.  
  1156.         'Fahr', 'Numb', { 30, 10 }, { 22, 40 }, sizeFixed, sizeFixed, shown, disabled,
  1157.         NumberText {
  1158.             "",
  1159.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  1160.                 {2, 2, 2, 2}, applFont12,
  1161.             justRight, "",
  1162.             255, ArrowsAndBackspace,
  1163.             32, -40, 220 };
  1164.  
  1165.         'DLOG', 'sldr', {100, 300}, {106, 35}, sizeFixed, sizeFixed, shown, enabled,
  1166.         Picture {
  1167.             "TSlider",
  1168.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1169.                 noInset, systemFont,
  1170.             1003 };
  1171.  
  1172.         'DLOG', 'sbar', { 20, 50 }, { 16, 300 }, sizeVariable, sizeVariable, shown, enabled,
  1173.         ScrollBar {
  1174.             "TScrollBar",
  1175.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1176.                 noInset, systemFont, 0, -1000, 1000 };
  1177.     }
  1178. };
  1179.  
  1180.  
  1181. /************************************************************************************/
  1182. /*    Cluster Tabbing Test Dialog                                                        */
  1183. /************************************************************************************/
  1184. resource 'view' (cTabbingTest, purgeable) {
  1185.     {
  1186.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  1187.         Window {
  1188.             "",
  1189.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  1190.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  1191.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, 'edt1',
  1192.                 "Tabbing Test" };
  1193.  
  1194.         'WIND', 'DLOG',    { 0, 0 }, { 240, 430 }, sizeSuperView, sizeSuperView, shown, enabled,
  1195.         DialogView {
  1196.             "",
  1197.                 noId, noID };
  1198.  
  1199.         'DLOG', noID, { 10, 0 }, { 16, 430 }, sizeFixed, sizeFixed, shown, disabled,
  1200.         StaticText {
  1201.             "",
  1202.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1203.                 noInset, applFont12,
  1204.             justCenter, "This dialog demonstrates tabbing" };
  1205.  
  1206.         'DLOG', 'edt1', { 40, 20 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1207.         EditText {
  1208.             "",
  1209.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1210.                 stdInset, systemFont,
  1211.             justSystem, "one",
  1212.             255, arrowsAndBackspace };
  1213.  
  1214.         'DLOG', 'edt2', { 70, 20 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1215.         EditText {
  1216.             "",
  1217.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1218.                 stdInset, systemFont,
  1219.             justSystem, "two",
  1220.             255, arrowsAndBackspace };
  1221.  
  1222.         'DLOG', 'cls1', { 100, 10 }, { 110, 190 }, sizeFixed, sizeFixed, shown, disabled,
  1223.         Cluster {
  1224.             "",
  1225.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1226.                 noInset, systemFont,
  1227.             "Cluster One" };
  1228.  
  1229.         'cls1', 'edt3', { 30, 10 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1230.         EditText {
  1231.             "",
  1232.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1233.                 stdInset, systemFont,
  1234.             justSystem, "three",
  1235.             255, arrowsAndBackspace };
  1236.  
  1237.         'cls1', 'edt4', { 70, 10 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1238.         EditText {
  1239.             "",
  1240.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1241.                 stdInset, systemFont,
  1242.             justRight, "four",
  1243.             255, arrowsAndBackspace };
  1244.  
  1245.         'DLOG', 'cls2', { 30, 210 }, { 200, 190 }, sizeFixed, sizeFixed, shown, disabled,
  1246.         Cluster {
  1247.             "",
  1248.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1249.                 noInset, systemFont,
  1250.             "Cluster Two" };
  1251.  
  1252.         'cls2', 'edt5', { 30, 20 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1253.         EditText {
  1254.             "",
  1255.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1256.                 stdInset, systemFont,
  1257.             justCenter, "five",
  1258.             255, arrowsAndBackspace };
  1259.  
  1260.         'cls2', 'edt6', { 70, 20 }, { 100, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1261.         EditText {
  1262.             "",
  1263.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1264.                 stdInset, systemFont,
  1265.             justSystem, "six",
  1266.             255, arrowsAndBackspace | carriageReturn }
  1267.  
  1268.     }
  1269. };
  1270.  
  1271.  
  1272. /************************************************************************************/
  1273. /*    Calculator clone dialog                                                            */
  1274. /************************************************************************************/
  1275. #define monaco9        plain,  9, {0, 0, 0}, "monaco"
  1276.  
  1277. resource 'view' (cCalculator, purgeable) {
  1278.     {
  1279.         root, 'WIND', { 60, 60 }, { 154, 112 }, sizeVariable, sizeVariable, shown, enabled,
  1280.         Window {
  1281.             "",
  1282.                 rDocProc, goAwayBox, notResizable, modeless, ignoreFirstClick,
  1283.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  1284.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, 'DLOG',
  1285.                 "Calculator" };
  1286.  
  1287.         'WIND', 'DLOG',    { 0, 0 }, { 154, 112 }, sizeSuperView, sizeSuperView, shown, disabled,
  1288.         Picture {
  1289.             "TCalcDialog",
  1290.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1291.                 noInset, systemFont,
  1292.             kCalcPicture };
  1293.  
  1294.         'DLOG', noID, { 6, 12 }, { 14, 88 }, sizeFixed, sizeFixed, shown, disabled,
  1295.         StaticText {
  1296.             "",
  1297.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1298.                 noInset, bold+italic+condense, 9, { 0xFFFF, 0, 0 }, "monaco",
  1299.             justSystem, "MacApp®-ulator" };
  1300.  
  1301.         'DLOG', 'SUMM', { 26, 12 }, { 18, 88 }, sizeFixed, sizeFixed, shown, disabled,
  1302.         StaticText {
  1303.             "TSumStaticText",
  1304.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1305.                 { 2, 2, 2, 2 }, monaco9,
  1306.             justRight, "0" };
  1307.  
  1308.         'DLOG', 'keyC', { 50, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1309.         Control {
  1310.             "",
  1311.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1312.  
  1313.         'DLOG', 'key=', { 50, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1314.         Control {
  1315.             "",
  1316.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1317.  
  1318.         'DLOG', 'key/', { 50, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1319.         Control {
  1320.             "",
  1321.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1322.  
  1323.         'DLOG', 'key*', { 50, 80 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1324.         Control {
  1325.             "",
  1326.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1327.  
  1328.         'DLOG', 'key7', { 70, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1329.         Control {
  1330.             "",
  1331.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1332.  
  1333.         'DLOG', 'key8', { 70, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1334.         Control {
  1335.             "",
  1336.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1337.  
  1338.         'DLOG', 'key9', { 70, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1339.         Control {
  1340.             "",
  1341.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1342.  
  1343.         'DLOG', 'key-', { 70, 80 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1344.         Control {
  1345.             "",
  1346.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1347.  
  1348.         'DLOG', 'key4', { 90, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1349.         Control {
  1350.             "",
  1351.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1352.  
  1353.         'DLOG', 'key5', { 90, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1354.         Control {
  1355.             "",
  1356.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1357.  
  1358.         'DLOG', 'key6', { 90, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1359.         Control {
  1360.             "",
  1361.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1362.  
  1363.         'DLOG', 'key+', { 90, 80 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1364.         Control {
  1365.             "",
  1366.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1367.  
  1368.         'DLOG', 'key1', { 110, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1369.         Control {
  1370.             "",
  1371.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1372.  
  1373.         'DLOG', 'key2', { 110, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1374.         Control {
  1375.             "",
  1376.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1377.  
  1378.         'DLOG', 'key3', { 110, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1379.         Control {
  1380.             "",
  1381.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1382.  
  1383.         'DLOG', 'keyE', { 110, 80 }, { 36, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1384.         Control {
  1385.             "",
  1386.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1387.  
  1388.         'DLOG', 'key0', { 130, 14 }, { 16, 41 }, sizeFixed, sizeFixed, shown, enabled,
  1389.         Control {
  1390.             "",
  1391.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1392.  
  1393.         'DLOG', 'key.', { 130, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1394.         Control {
  1395.             "",
  1396.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 }
  1397.     }
  1398. };
  1399.  
  1400. type 'SS11' as 'STR ';
  1401. resource 'SS11' (0,
  1402. #if qNames
  1403. "Signature",
  1404. #endif
  1405.     purgeable) {
  1406.     "Application created by MacApp®"
  1407. };
  1408.  
  1409. resource 'BNDL' (128,
  1410. #if qNames
  1411. "Bundle",
  1412. #endif
  1413.     purgeable) {
  1414.     'SS11',
  1415.     0,
  1416.         {
  1417.         'ICN#',
  1418.             {
  1419.             0, 128,
  1420.             },
  1421.         'FREF',
  1422.             {
  1423.             0, 128,
  1424.             }
  1425.         }
  1426. };
  1427.  
  1428. include "Defaults.rsrc"  'STR#' (kDefaultCredits);        // Grab the default credits
  1429.  
  1430. // Get the default MacApp® application icon and necessary bundling rsrcs
  1431. include "Defaults.rsrc"  'FREF' (128);
  1432. include "Defaults.rsrc"  'ICN#' (128);
  1433.  
  1434. // Get the default Version resources
  1435. include "Defaults.rsrc"  'vers' (1);        // Application or file specific
  1436. include "Defaults.rsrc"  'vers' (2);        // Overall package
  1437.